package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.TravelLike;
import cn.wolfcode.trip.base.query.LikeQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.Map;

public interface ITravelLikeService {

    TravelLike queryLike(Long travelId,Long userId);

    void save(TravelLike entity);


    void deleteLike(Long travelId, Long id);

    Object countUnReadLikes(LikeQueryObject qo);

    PageInfo<?> selectUserAcceptForList(LikeQueryObject qo);
    PageInfo<?> selectUserSendForList(LikeQueryObject qo);


    void updateState(Long authorId);

    Map maxLike(LikeQueryObject qo);

    Integer countOthersLike(LikeQueryObject qo);

    Integer countLike(LikeQueryObject qo);
}
